import { obtainCourseWillPlan } from '../../.../../../config/api'
import * as actionTypes from './actionTypes';

const getCourseWillPlan = (data) => ({
	type: actionTypes.Acquire_Course_Will_Plan,
	data
});
// // 获取 课程介绍
export const acquireCourseWillPlan = ( batch_id,union_id ) => {
	return async (dispatch) => {
		const data = await obtainCourseWillPlan( batch_id,union_id)
		console.log(data.data, '获取 课程介绍 数据')
		dispatch(getCourseWillPlan(data.data));
	}
};